package com.ciklum.vlgu.pages;

import java.lang.reflect.Field;
import java.util.List;
import java.util.Set;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.pagefactory.ElementLocator;
import org.openqa.selenium.support.pagefactory.ElementLocatorFactory;

public class DisplayedElementLocatorFactory implements ElementLocatorFactory {
	
	private final WebDriver driver;
	private final int timeOutInSeconds;

	public DisplayedElementLocatorFactory(WebDriver driver, int timeOutInSeconds) {
		this.driver = driver;
		this.timeOutInSeconds = timeOutInSeconds;
	}
	
	@Override
	public ElementLocator createLocator(Field field) {
		return new DisplayedElementLocator(driver, field, timeOutInSeconds);
	}

	
}
